repo: Stop using deprecated G_GNUC_FUNCTION
authorDan Nicholson <nicholson@endlessm.com>
Fri, 18 Oct 2019 17:10:44 +0000 (11:10 -0600)
committerDan Nicholson <nicholson@endlessm.com>
Fri, 18 Oct 2019 17:10:44 +0000 (11:10 -0600)
In glib 2.62 this has been changed to emitting a warning. Use G_STRFUNC
instead, which has been available for a long time and is already used in
other places in ostree.

src/libostree/ostree-repo.c

index 584037c428b84d96fd410dde302569bc28aea50e..cff70d474edd6cfadd3b46c67114aa6c9c9edac4 100644 (file)
@@ -1548,8 +1548,8 @@ keyfile_set_from_vardict (GKeyFile     *keyfile,
           g_key_file_set_string_list (keyfile, section, key, strv_child, len);
         }
       else
-        g_critical ("Unhandled type '%s' in " G_GNUC_FUNCTION,
-                    (char*)g_variant_get_type (child));
+        g_critical ("Unhandled type '%s' in %s",
+                    (char*)g_variant_get_type (child), G_STRFUNC);
     }
 }